package com.ruiysoft.entity.sys;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author huazengguang
 * @since 2018-11-17
 */
@TableName("sys_shop_personnel")
public class SysShopPersonnel extends Model<SysShopPersonnel> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("app_id")
    private String appId;

    private String openid;

    private String mobile;

    private String nickname;

    @TableField("real_name")
    private String realName;

    @TableField("head_img_url")
    private String headImgUrl;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_flag")
    private Boolean deleteFlag;

    private Integer version;

    @TableField(exist = false)
    private Boolean memberFlag;

    @TableField(exist = false)
    private Integer memberLevel;

    @TableField(exist = false)
    private Long relationId;

    @TableField(exist = false)
    private Integer integral;

    @TableField(exist = false)
    private long distributionId;

    @TableField(exist = false)
    private String distributionName;

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Long getId() {
        return id;
    }

    public SysShopPersonnel setId(Long id) {
        this.id = id;
        return this;
    }

    public String getAppId() {
        return appId;
    }

    public SysShopPersonnel setAppId(String appId) {
        this.appId = appId;
        return this;
    }

    public String getOpenid() {
        return openid;
    }

    public SysShopPersonnel setOpenid(String openid) {
        this.openid = openid;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public SysShopPersonnel setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getNickname() {
        return nickname;
    }

    public SysShopPersonnel setNickname(String nickname) {
        this.nickname = nickname;
        return this;
    }

    public String getRealName() {
        return realName;
    }

    public SysShopPersonnel setRealName(String realName) {
        this.realName = realName;
        return this;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public SysShopPersonnel setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
        return this;
    }

    public long getDistributionId() {
        return distributionId;
    }

    public void setDistributionId(long distributionId) {
        this.distributionId = distributionId;
    }

    public String getDistributionName() {
        return distributionName;
    }

    public void setDistributionName(String distributionName) {
        this.distributionName = distributionName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public SysShopPersonnel setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public SysShopPersonnel setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public Boolean getDeleteFlag() {
        return deleteFlag;
    }

    public SysShopPersonnel setDeleteFlag(Boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
        return this;
    }

    public Integer getVersion() {
        return version;
    }

    public SysShopPersonnel setVersion(Integer version) {
        this.version = version;
        return this;
    }

    public Boolean getMemberFlag() {
        return memberFlag;
    }

    public SysShopPersonnel setMemberFlag(Boolean memberFlag) {
        this.memberFlag = memberFlag;
        return this;
    }

    public Integer getMemberLevel() {
        return memberLevel;
    }

    public SysShopPersonnel setMemberLevel(Integer memberLevel) {
        this.memberLevel = memberLevel;
        return this;
    }

    public Long getRelationId() {
        return relationId;
    }

    public SysShopPersonnel setRelationId(Long relationId) {
        this.relationId = relationId;
        return this;
    }

    //    public Long getId() {
//        return id;
//    }
//
//    public SysShopPersonnel setId(Long id) {
//        this.id = id;
//        return this;
//    }
//    public String getOpenid() {
//        return openid;
//    }
//
//    public SysShopPersonnel setOpenid(String openid) {
//        this.openid = openid;
//        return this;
//    }
//    public Long getShopId() {
//        return shopId;
//    }
//
//    public SysShopPersonnel setShopId(Long shopId) {
//        this.shopId = shopId;
//        return this;
//    }
//    public Integer getIdentityType() {
//        return identityType;
//    }
//
//    public SysShopPersonnel setIdentityType(Integer identityType) {
//        this.identityType = identityType;
//        return this;
//    }
//    public String getMobile() {
//        return mobile;
//    }
//
//    public SysShopPersonnel setMobile(String mobile) {
//        this.mobile = mobile;
//        return this;
//    }
//    public String getNickname() {
//        return nickname;
//    }
//
//    public SysShopPersonnel setNickname(String nickname) {
//        this.nickname = nickname;
//        return this;
//    }
//    public String getHeadImgUrl() {
//        return headImgUrl;
//    }
//
//    public SysShopPersonnel setHeadImgUrl(String headImgUrl) {
//        this.headImgUrl = headImgUrl;
//        return this;
//    }
//    public Date getCreateTime() {
//        return createTime;
//    }
//
//    public SysShopPersonnel setCreateTime(Date createTime) {
//        this.createTime = createTime;
//        return this;
//    }
//    public Date getUpdateTime() {
//        return updateTime;
//    }
//
//    public SysShopPersonnel setUpdateTime(Date updateTime) {
//        this.updateTime = updateTime;
//        return this;
//    }
//    public Boolean getDeleteFlag() {
//        return deleteFlag;
//    }
//
//    public SysShopPersonnel setDeleteFlag(Boolean deleteFlag) {
//        this.deleteFlag = deleteFlag;
//        return this;
//    }
//    public Integer getVersion() {
//        return version;
//    }
//
//    public SysShopPersonnel setVersion(Integer version) {
//        this.version = version;
//        return this;
//    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysShopPersonnel{" +
        "id=" + id +
        ", openid=" + openid +
        ", mobile=" + mobile +
        ", nickname=" + nickname +
        ", headImgUrl=" + headImgUrl +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        ", version=" + version +
        "}";
    }
}
